import React from "react";


//表格表头
export interface FormColumnsType {
  title: string,
  dataIndex: string,
  key: string,
  width: number,
  sorter?: (a: any, b: any) => number,
  render?: (item: object, record: { id: number }) => JSX.Element,
  fixed?: 'left' | 'right'
}
//复选框的接口
export interface DataType {
  id: number
  name?: string;
  age?: number;
  address?: string;
  key?: React.ReactNode
}
export type timeType = () => string
export interface dataSourceType {
  deliveryUnit: string; carNumber: string;
  matName: string;
  phone: string;
  netWeight: string;
  grossWeight: string;
  quantity: string;
  supervisor: string;
  receiver: string;
  date: string;
  receivingUnit: string;
}
export interface rowSelectionType {
  onChange: (selectedRowKeys: React.Key[], selectedRows: DataType[]) => void,

}
export interface indexTableType {
  pagination: {
    //每页3条项目
    defaultPageSize: number,
    //自定义每页显示数目
    showSizeChanger: boolean,
    //自定义每页显示项目的选项
    pageSizeOptions: Array<string>,
    // 输入指定页码跳页
    showQuickJumper: boolean,
    //全部项目数（最好可以用变量表示，与实际项目数关联）
    total: number
  }
}
